package com.xwltz.rbac.domain;

import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xwltz.database.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @description 部门表 bs_department
 * @information on version 1.0 be created by @xwltz at 2022-06-17 11:09
 */

@Data
@Accessors(chain = true)
@TableName("bs_department")
@ApiModel("部门表")
public class DepartmentEntity extends BaseEntity {

	/**
	 * 部门编号 id;
	 */
	@TableId
	@NotNull(message = "[部门编号]不能为空")
	@ApiModelProperty("部门编号")
	private Long id;

	/**
	 * 部门名称 name;
	 */
	@Size(max = 255, message = "编码长度不能超过255")
	@ApiModelProperty("部门名称")
	private String name;

	/**
	 * 部门层级 level;
	 */
	@ApiModelProperty("部门层级")
	private Integer level;

	/**
	 * 父级部门 parentId;
	 */
	@ApiModelProperty("父级部门")
	private Long parentId;

	/**
	 * 关联部门 parentIds;
	 */
	@Size(max = 255, message = "编码长度不能超过255")
	@ApiModelProperty("关联部门")
	private String parentIds;

	/**
	 * 部门属性 attributeStatus;
	 */
	@ApiModelProperty("部门属性")
	private Integer attributeStatus;


}
